package com.paradox.rpc.protocol;

import com.paradox.rpc.protocol.Netty.NettyClient;
import com.paradox.rpc.protocol.Netty.NettyServer;
import com.paradox.rpc.registry.NativeRegistry;

public class ClientFactory {
    private static ParadoxClient client = null;
    public static ParadoxClient getClient(String opt){
        if("netty".equals(opt)){
            if(client==null)
                ClientFactory.client=new NettyClient("localhost",9000);
            return ClientFactory.client;
        }else{
            return null;
        }
    }
}
